package com.qf.admin.controller;


import com.qf.admin.entity.SysUser;
import com.qf.admin.service.ISysUserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/sys_user")
public class SysUserController {

    private ISysUserService sysUserService;

    public SysUserController(ISysUserService sysUserServiceImpl) {
        this.sysUserService = sysUserServiceImpl;
    }


    @GetMapping
    public List<SysUser> getAllSysUser(){

        List<SysUser> allSysUser = sysUserService.getAllSysUser();

        return allSysUser;
    }
}
